/**
 * 
 */
package com.shine.icis.dao;

import com.shine.cotrun.sql.QueryParameters;
import com.shine.cotrun.web.comm.ListPage;
import com.shine.icis.dao.IBaseHibernateDAO;
import com.shine.icis.hbean.AccrualInfo;

/**
 * @author zsy
 *
 */
public interface IAccrualInfoDAO extends IBaseHibernateDAO {

	public AccrualInfo findById(long id);
	
	/**
	 * 翻页查找
	 * @param qp
	 * @return
	 */
	public ListPage<AccrualInfo> findListPage(QueryParameters qp);
	
	/**
	 * 翻页查找汇总数据
	 * @param qp
	 * @return
	 */
	public ListPage<AccrualInfo> findStatListPage(QueryParameters qp);
	
	/**
	 * 检查主键重复
	 * @param companyCode
	 * @return
	 */
	public boolean checkId(int tradeDate, String arapType, String oppPar, String mktCodeSipf, 
			String arapBusiType, String curTypeSipf, int harapDate, int busiDate);
	
}
